package com.vogue.supplymall.order.domain.mapper;

import com.vogue.supplymall.order.domain.model.OrderPayment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * The type Order payment mapper.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-02-05
 */
@Mapper
public interface OrderPaymentMapper extends BaseMapper<OrderPayment, Long> {

    /**
     * Gets for order id.
     *
     * @param orderId the order id
     * @return the for order id
     */
    @Select("SELECT * from order_payment where orderid = #{orderId} ")
    List<OrderPayment> getForOrderId(Long orderId);
}
